5bc5e2f4d97b7c99bdbadd393846a1703d5d717a,src/main/java/com/continuuity/app/services/AppFabricClient.java,AppFabricClient,configure,#CConfiguration#String#,149

Before Change


      if ("promote".equals(command)) {
        Preconditions.checkArgument(commandLine.hasOption(VPC_LONG_OPT_ARG), "promote command should have" +
          "vpc argument");
        Preconditions.checkArgument(commandLine.hasOption(AUTH_TOKEN_LONG_OPT_ARG), "promote command should " +
          "have auth token argument");
        Preconditions.checkArgument(commandLine.hasOption(APPLICATION_LONG_OPT_ARG), "promote command should have" +
          " application argument");

After Change


      if ("start".equals(sentCommand)) {
        Preconditions.checkArgument(commandLine.hasOption(APPLICATION_LONG_OPT_ARG), "status command should have " +
          "application argument");
        Preconditions.checkArgument(commandLine.hasOption(PROCEDURE_LONG_OPT_ARG) || commandLine.hasOption(FLOW_LONG_OPT_ARG) ,
          "start command should have procedure or flow argument");

        this.application = commandLine.getOptionValue(APPLICATION_LONG_OPT_ARG);
        this.procedure = commandLine.getOptionValue(PROCEDURE_LONG_OPT_ARG);
        this.flow = commandLine.getOptionValue(FLOW_LONG_OPT_ARG);
      }
      if ("stop".equals(sentCommand)) {
        Preconditions.checkArgument(commandLine.hasOption(APPLICATION_LONG_OPT_ARG), "status command should have " +
          "application argument");
        Preconditions.checkArgument(commandLine.hasOption(PROCEDURE_LONG_OPT_ARG) || commandLine.hasOption(FLOW_LONG_OPT_ARG) ,
          "stop command should have procedure or flow argument");

        this.application = commandLine.getOptionValue(APPLICATION_LONG_OPT_ARG);
        this.procedure = commandLine.getOptionValue(PROCEDURE_LONG_OPT_ARG);
        this.flow = commandLine.getOptionValue(FLOW_LONG_OPT_ARG);

      }
      if ("status".equals(sentCommand)) {
        Preconditions.checkArgument(commandLine.hasOption(APPLICATION_LONG_OPT_ARG), "status command should have " +
          "application argument");
        Preconditions.checkArgument(commandLine.hasOption(PROCEDURE_LONG_OPT_ARG) || commandLine.hasOption(FLOW_LONG_OPT_ARG) ,
                                    "status command should have procedure or flow argument");

        this.application = commandLine.getOptionValue(APPLICATION_LONG_OPT_ARG);
        this.procedure = commandLine.getOptionValue(PROCEDURE_LONG_OPT_ARG);
        this.flow = commandLine.getOptionValue(FLOW_LONG_OPT_ARG);

      }
      if ("promote".equals(sentCommand)) {
        Preconditions.checkArgument(commandLine.hasOption(HOSTNAME_LONG_OPT_ARG), "promote command should have" +
          "vpc argument");
        Preconditions.checkArgument(commandLine.hasOption(APIKEY_LONG_OPT_ARG), "promote command should " +
          "have auth token argument");